package be.ac.ua.codebase;

import java.util.UUID;

import net.jini.core.entry.Entry;

public class ProductOffer implements Entry {
	private static final long serialVersionUID = 1L;
	public Product product;
	public Long duration;
	public Double minAmount;
	public Double maxAmount; //Used for Dutch auctioneer
	public Class auctionType;
	public CustomerInterface seller;
	public UUID bankAccountID;
	public BankInterface bank;
	
	public ProductOffer() {
		
	}
	
	public ProductOffer(Product product) {
		this.product = product;
	}
	
	public ProductOffer(Product product, Long duration, Double minAmount, Double maxAmount, Class auctionType, CustomerInterface seller, UUID bankAccountID, BankInterface bank) {
		this.product = product;
		this.duration = duration;
		this.minAmount = minAmount;
		this.maxAmount = maxAmount;
		this.auctionType = auctionType;
		this.seller = seller;
		this.bankAccountID = bankAccountID;
		this.bank = bank;
	}
	
	public Product getProduct() {
		return this.product;
	}
}
